package com.tuyrt.firstcode.utils

import android.content.SharedPreferences

/**
 * Created by tuyrt7 on 2021/4/9.
 */

inline fun SharedPreferences.open(block: SharedPreferences.Editor.() -> Unit) {
    val editor = edit()
    editor.block()
    editor.apply()
}
